zUtil.jeditor = function(id,jsonOpts,data) {
    const editor = new JSONEditor($(id)[0], jsonOpts);
    if("undefined" !== $.type(data)){
      editor.setValue(data);
    }
    return editor;
};
zUtil.jeditorData = function(editor,data) {
    if("undefined" !== $.type(editor) && "undefined" === $.type(data)){
        return editor.getValue();
    }else if("undefined" !== $.type(editor) && "undefined" !== $.type(data)){
        editor.setValue(data);
    }
    return data;
};
zUtil.jeditorClear = function(editor) {
    editor.destroy();
}
zUtil.jeditorKey = function(editor,key) {
    return editor.getEditor(key);
}

